package com.cobo.fitness.core.meillisearch;

import com.meilisearch.sdk.Client;
import com.meilisearch.sdk.Config;
import lombok.Setter;

@Setter
public class DefaultMeilisearchClient implements MeilisearchClient{

    private String masterKey;

    private String meilisearchHost;

    public Client getClient() {
        Client client = new Client(new Config(meilisearchHost, masterKey));
        return client;
    }
}
